﻿namespace PlaylistCopy.ViewModels
{
    using PlaylistCopy.Ioc;

    public class ViewModelLocatorService
    {
        private readonly Container container;

        public ViewModelLocatorService()
        {
            this.container = new Container();
        }

        public IMainWindowVm MainWindowVm
        {
            get { return this.container.Resolve<IMainWindowVm>(); }
        }

        public ISummaryWindowVm SummaryWindowVm
        {
            get { return this.container.Resolve<ISummaryWindowVm>(); }
        }

        public IAboutWindowVm AboutWindowVm
        {
            get { return this.container.Resolve<IAboutWindowVm>(); }
        }

        public T Resolve<T>()
        {
            return this.container.Resolve<T>();
        }
    }
}
